import request from '@/utils/request'

// 获取进度状态
export function getProgress(taskId) {
  return request({
    url: `/api/progress/${taskId}`,
    method: 'get'
  })
}

// 取消任务
export function cancelTask(taskId) {
  return request({
    url: `/api/progress/${taskId}/cancel`,
    method: 'post'
  })
}